<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setCharacterEncoding("UTF-8");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>登录博客</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
</head>
<body>
<div id="container">
		<div id="banner">
			<br />
			<h1>登录博客</h1>
		</div>
		<br/>
<div id="container" class="easyui-layout" style="width:1000px;height:100%;background:rgba( 0, 0, 0, 0.5);">
<% String message=(String)request.getAttribute("msg");
   if(message!=null){
	   out.print("<font color='red'>"+message+"</font>");
   }
%>
 <form id="form1" name="form1" method="post" action="<%=basePath%>home.do?tohome">
				<input type="hidden" id="loginPage" name="loginPage" value="loginPage" />
				<table width="331" height="84" border="0">
	<tr>
		<td>用户名：</td>
		<td><label> <input type="text" name="userId"
			id="username" /> </label></td>
	</tr>
	<tr>
		<td>密码：</td>
		<td><label> <input type="password" name="password"
			id="password" /> </label></td>
	</tr>
	<tr>
		<td><label> <input type="submit" name="button"
			id="button" value="提交" /> </label></td>
		<td>&nbsp;</td>
	</tr>
</table>
</form> 
</div>
</div>
</body>
</html>